package com.bw.module_mine.http

import com.bw.lib_net.BaseResponse
import com.bw.module_mine.model.LoginResult
import com.bw.module_mine.model.MineModel
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @author zhy
 * @date 2025-09-20 11:10
 * @description
 */
interface MineApi {
    //用户信息
    @GET("/app/member/getUserInfo")
    suspend fun getUserInfo():BaseResponse<MineModel>

    //是否签到
    @POST("/app/sign/isSignedInToday")
    suspend fun isSign():BaseResponse<Boolean>

    @POST("/app/sign/signIn")
    suspend fun signIn():BaseResponse<Boolean>

    //发送登录验证码
    @POST("/app/sms/sendLoginCode")
    suspend fun sendLoginCode(@Query("operatorType") operatorType:Int = 2, @Query("phone") phone:String):BaseResponse<Boolean>

    //发送重置验证码
    @POST("/app/sms/sendForgetPwdCode")
    suspend fun sendResetCode(@Query("operatorType") operatorType:Int = 2, @Query("phone") phone:String):BaseResponse<Boolean>


    //登录
    @POST("/app/club_auth/login")
    suspend fun login(@Body body: RequestBody):BaseResponse<LoginResult>

    //校验重置验证码
    @POST("/app/club_auth/resetPwd")
    suspend fun resetPwd(@Body body: RequestBody):BaseResponse<Boolean>

    //校验重置验证码
    @POST("/app/club_auth/resetNewPwd")
    suspend fun newPwd(@Body body: RequestBody):BaseResponse<Boolean>



}